package com.cspm.ahjy.bc.office.enums;

/**
 * 底纹样式
 * @author ServerZhang
 * @date 2017年10月10日
 */
public enum ShadowTypeEnum {

	Q("clear","清除"),
	W("solid","纯色（100%）"),
	E("pct-5","5%"),
	R("pct-10","10%"),
	T("pct-12","12.5%"),
	Y("pct-15","15%"),
	U("pct-20","20%"),
	I("pct-25","25%"),
	O("pct-30","30%"),
	P("pct-35","35%"),
	A("pct-37","37.5%"),
	S("pct-40","40%"),
	D("pct-45","45%"),
	F("pct-50","50%"),
	G("pct-55","55%"),
	H("pct-60","60%"),
	J("pct-62","65%"),
	K("pct-70","70%"),
	Z("pct-75","75%"),
	X("pct-80","80%"),
	C("pct-85","85%"),
	V("pct-87","87.5%"),
	B("pct-90","90%"),
	N("pct-95","95%"),
	
	AAA("horz-stripe","深色横线"),
	BBB("vert-stripe","深色竖线"),
	CCC("reverse-diag-stripe","深色下斜线"),
	DDD("diag-stripe","深色上斜线"),
	EEE("horz-cross","深色网格"),
	FFF("diag-cross","深色棚架"),
	
	AA("thin-horz-stripe","浅色横线"),
	BB("thin-vert-stripe","浅色竖线"),
	CC("thin-reverse-diag-stripe","浅色下斜线"),
	DD("thin-diag-stripe","浅色上斜线"),
	EE("thin-horz-cross","浅色网格"),
	FF("thin-diag-cross","浅色棚架");
	
	String type;//底纹样式
	String description;//样式说明
	
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	ShadowTypeEnum(String type, String description){
		this.type = type;
		this.description = description;
	}
	
	public static ShadowTypeEnum getByType(String type){
		if (null == type) {
			return null;
		}
		for (ShadowTypeEnum e : ShadowTypeEnum.values()) {
			if (e.getType().equals(type.toLowerCase())) {
				return e;
			}
		}
		return null;
	}
	
}
